跳到主要内容

SetTrackRevisions

Sets the change tracking mode.

Syntax

expression.SetTrackRevisions(isTrack);

expression - A variable that represents a ApiDocument class.

Parameters

NameRequired/OptionalData typeDefaultDescription
isTrackRequiredbooleanSpecifies if the change tracking mode is set or not.

Returns

This method doesn't return any data.

Example

This example sets the change tracking mode.

let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
doc.SetTrackRevisions(true);
paragraph.AddText("Track revisions mode was set.");